package com.xx;

import com.xx.hdfsFx.promptStage.CreatePrompt;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.DialogPane;
import javafx.stage.Stage;

public class test extends Application {
    @Override
    public void start(Stage stage) {

        DialogPane root = new DialogPane();
        Button content = new Button("content");
        root.setContent(content);
        stage.setScene(new Scene(root));
        stage.show();

        CreatePrompt changePath = new CreatePrompt("fileName");
        content.setOnAction(event -> changePath.showStage());
    }

    public static void main(String[] args) {
        launch();
    }
}
